package demo02;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: YKH
 * Date: 2022-04-10
 * Time: 20:11
 */
public class Student extends Person implements Kaibai{
    private String name;
    private int age;

    public Student() {

    }
    public Student(String name, int age) {
        this.name = name;
        this.age = age;
    }


    public String stugetName() {
        return name;
    }

    public void stusetName1(String name) {
        this.name = name;
    }

    @Override
    public int getAge() {
        return age;
    }

    @Override
    public void setAge(int age) {
        this.age = age;
    }

    @Override
    public void behavior() {
        System.out.println("好累啊，摸了今天");
    }

    @Override
    public void outcome() {
        System.out.println("寄了");
    }

    @Override
    public void study() {
        System.out.println("好好学习天天向上");
    }
}
